//
//  NSObject+GPObject.m
//  GPMall
//
//  Created by Polu Lee on 16/8/9.
//  Copyright © 2016年 济南高品伟业信息科技有限公司. All rights reserved.
//

#import "NSObject+GPObject.h"

@implementation NSObject (GPObject)

+ (instancetype)creatObject{
    
    return  [[self alloc]init];
}

+ (instancetype)loadStroyboard:(NSObject *)obj{
    
    UIStoryboard *objSb = [UIStoryboard storyboardWithName:NSStringFromClass([obj class]) bundle:nil];
    
    return [objSb instantiateViewControllerWithIdentifier:NSStringFromClass([obj class])];
    
}

- (instancetype)loadCellNibWithClass:(NSObject *)className{
    
    return  [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([className class]) owner:self options:nil]lastObject];
}

@end
